package webEquipeRechercheGwt.server.webEquipeRechercheServices;

import java.util.Collection;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import webEquipeRechercheGwt.client.entityMirror.TeamMirror;
import webEquipeRechercheGwt.client.services.TeamService;
import webEquipeRechercheGwt.server.rmiManager.RmiManager;

public class TeamServiceImpl extends RemoteServiceServlet implements TeamService {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3293500683414312382L;

	@Override
	public Collection<TeamMirror> getTeams() {
		RmiManager rmi = new RmiManager();
		return rmi.getWebEquipeRechercheFacade().getTeamsMirrors();
	}

	@Override
	public boolean createTeam(TeamMirror t) {
		RmiManager rmi = new RmiManager();
		return rmi.getWebEquipeRechercheFacade().createTeam(t);
	}

}
